#include <vector>
#include "UpdateEvent.h"

UpdateEvent::UpdateEvent(){
	ulist->push_back(this);
}

void UpdateEvent::updateAll(double h){

	for (std::vector<UpdateEvent*>::iterator i = ulist->begin(); i != ulist->end(); ++i)
		(*i)->update(h);
}


std::vector<UpdateEvent*> *UpdateEvent::ulist = new std::vector<UpdateEvent*>();